(function(undefined){
    var admin_trolley_obj = {};   



     admin_trolley_obj.check_form =function(){
        $("#sbtn2").attr('disabled','disabled');

         //用ajax提交数据
        $.getJSON('/handle.php',$('#form2').serializeArray(),function(data){            
            if(data == undefined || !data.state){
                dialog.finish({
                    content:data.msg,
                    success:false
                });
                $("#sbtn2").attr('disabled','');
                return;
            }
            $("#form_h").val("admin_product_order/add");
            document.getElementById("form2").submit();
        });
         
        return false;
    }
    
    
        if(window.admin_trolley_obj == undefined) {
        window.admin_trolley_obj = admin_trolley_obj;
    }    
})();